* {
    margin: 0;
    padding: 0;
}

.charge {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    width: 600px;
    height: 600px;
    margin: 0 auto;
}

.battery {
    position: relative;
    width: 200px;
    height: 300px;
    background-color: #fff;
    border-radius: 10px 10px 0 0;
}

.battery::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 45px;
    height: 20px;
    background-color: #fff;
    border-radius: 30% 30% 0 0;
}


.electricity {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(109, 244, 114);
    animation: up 5s linear infinite;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

@keyframes up {
    0% {
        top: 100%;
    }

    100% {
        top: 0%;
    }
}

.electricity::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 400px;
    height: 400px;
    border-radius: 39% 35%;
    transform: rotate(80deg);
    background-color: rgba(255, 255, 255, .9);
    animation: wavebefore 5s linear infinite;
}

.electricity::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 400px;
    height: 400px;
    border-radius: 47% 39%;
    background-color: rgba(255, 255, 255, .7);
    animation: waveafter 5s linear infinite;

}

@keyframes wavebefore {
    0% {
        transform: translate(-20%, -95%) rotate(0);
    }

    100% {
        transform: translate(-20%, -97%) rotate(360deg);
    }
}

@keyframes waveafter {
    0% {
        transform: translate(-20%, -90%) rotate(0);
    }

    100% {
        transform: translate(-20%, -92%) rotate(360deg);
    }
}